From: Florian Müllner Date: Tue, 9 Aug 2022 10:52:58 +0000 (+0200) Subject: sessionMode: Log mode changes X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~461^2^2~54 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=111e982eb71d4a3701f22ddff55a4b53a47f1067;p=gnome-shell.git sessionMode: Log mode changes Now that console.debug() makes it easy to log message with DEBUG priority, we can be a lot more generous with logging without spamming logs (by default). Those turned out useful in figuring out the issue in the next commit, so let's keep them. Part-of: --- diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js index c82e8329c..d9dbdefc6 100644 --- a/js/ui/sessionMode.js +++ b/js/ui/sessionMode.js @@ -158,6 +158,7 @@ var SessionMode = class extends Signals.EventEmitter { } pushMode(mode) { + console.debug(`sessionMode: Pushing mode ${mode}`); this._modeStack.push(mode); this._sync(); } @@ -165,6 +166,8 @@ var SessionMode = class extends Signals.EventEmitter { popMode(mode) { if (this.currentMode != mode || this._modeStack.length === 1) throw new Error("Invalid SessionMode.popMode"); + + console.debug(`sessionMode: Popping mode ${mode}`); this._modeStack.pop(); this._sync(); }